#
# Cmake instructions file
#
cmake_minimum_required(VERSION 2.8)
 
include(Properties.cmake)
 
project(${NAME} CXX)

include(SBE/DeployDependencies)
include(SBE/AddBinaryTargets)
include(SBE/AddInstallTarget)
include(SBE/AddUninstallTarget)
include(SBE/AddPackageTarget)
include(SBE/AddTagTarget)

sbeAddLibrary(
    Name ${NAME}
    Sources
        src/PlainDocument.cpp
        src/PlainParagraph.cpp
        src/Text.cpp
        src/PlainSmiley.cpp
    PublicHeaders
        src/PlainDocument.h
        src/PlainParagraph.h
        src/Text.h
        src/Smiley.h
        src/Document.h
        src/Paragraph.h
        src/Printable.h        
    ContainsDeclspec
)

addInstallTarget(
    Package ${NAME}
    Targets ${NAME}
    IncludePathReplacement 
        "src/.* -> " 
        "test/mock/.* -> mock/"
)

addPackageTarget()
